import json
import re


def json_html(response):
    html = response.text
    script = re.findall(r'<script>.*?window._appState\s=\s({.+?)</script>', html, re.S)[0][:-1]
    script2 = json.loads(script)
    return script2
